home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Linux Cubed Series 3: Developer Tools
/
Linux Cubed Series 3 - Developer Tools.iso
/
devel
/
make
/
icmake-6.000
/
icmake-6
/
icmake
/
comp
/
bnot.c
< prev
next >
Encoding:
Amiga
Atari
Commodore
DOS
FM Towns/JPY
Macintosh
Macintosh JP
Macintosh to JP
NeXTSTEP
RISC OS/Acorn
Shift JIS
UTF-8
Wrap
C/C++ Source or Header
|
1994-02-08
|
563 b
|
24 lines
/*
B N O T . C
*/
#include "iccomp.h"
ESTRUC_ *bnot (ESTRUC_ *e) /* expression so far */
{
if (test_operand(e, op_bnot)) /* test types ok */
{
semantic(illegal_type, opstring[op_bnot]);
return (e);
}
if ((e->type & ~ALLTYPES) == e_const) /* immediate value */
e->evalue = ~e->evalue;
else
{
etoc(e); /* convert to code */
gencode(e, op_bnot); /* generate instruction */
}
return (e);
}